// declare function print(arg:string) : string;
declare interface ArkTools{
  timeInUs(arg:any):number
}

function main() {
  let i:number,j:number;
  let cnt = 0;
  let start = ArkTools.timeInUs();
  for (i = 0;i < 10000; i++) {
    for (j = 0; j < 10000; j++) {
      cnt = cnt + i + j;
    }
  }
  let end = ArkTools.timeInUs()
  // print(cnt)
  // print(end - start)
  print("test_for_plus1w:\t"+String((end - start)/1000)+"\tms");
}

let loopCountForPreheat = 1;
for (let i = 0; i < loopCountForPreheat; i++) {
  main()
}

ArkTools.waitAllJitCompileFinish();

main()